package com.aizhixin.test.errolAlmost.dto;

import java.util.Date;
import java.util.List;

import javax.persistence.CascadeType;
import javax.persistence.FetchType;
import javax.persistence.OneToMany;

import com.aizhixin.test.question.dto.QuestionOptionDTO;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@ApiModel(description="题的收集")
@NoArgsConstructor
@ToString
public class SteamDTO {

	@ApiModelProperty(value="题号")
	@Getter @Setter private Long questionID;
	
	@ApiModelProperty(value="回答日期")
	@Getter@Setter private Date anserTime;
	
    @ApiModelProperty(value = "题目内容")
    @Getter @Setter private String content;

    @ApiModelProperty(value = "题目正确答案")
    @Getter @Setter private String answer;

    @ApiModelProperty(value="用户当时的错误选项")
    @Getter @Setter private String userOption;
    
    @ApiModelProperty(value="知识点")
    @Getter @Setter private String kownledge;
    
    @ApiModelProperty(value="正误")
    @Getter@Setter private boolean YesoOrNo;
    
	@ApiModelProperty(value="包含选项")
	@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER,mappedBy="question")
	@Getter@Setter private List<steamoptionDTO> options;
}
